<? 
$percent = $rating -> getRating($article['Rating']);
?>
<div id="rating">
<? if($rating->amount($article['Rating'])>0){?>
<p style="padding: 0;"><? __('RATING_TITLE'); echo ': '.$percent.'%'?>
<br/><? __('RATING_AMOUNT'); echo ': '.$rating->amount($article['Rating']); ?></p>
<div id="rating_status_bar" style="width:<?echo $percent; ?>%;"></div>
<div id="rating_message">
		<?php
			if ($session->check('Message.flash')):
					$session->flash();
			endif;
		?>
</div>
<? } else {?>
<p><? __('RATING_EMPTY'); ?></p>
<? } ?>
<div id="rating_actions">
<? echo $ajax->link(__('RATING_BED',true),$url.'/rating/0',array('update'=>'rating_message')); ?> &bull; 
<? echo $ajax->link(__('RATING_GOOD',true),$url.'/rating/1',array('update'=>'rating_message')); ?>
</div>
</div>